home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr23 / dos6pr.zip / DOS6PREP.TXT < prev   
Text File  |  1993-06-22  |  20KB  |  361 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                              CheckIt PRO: CKMEDIA Applet
  9.  
  10.      Copyright (c) 1993 TouchStone Software Corporation.  ALL RIGHTS RESERVED.
  11.  
  12.      FREE License to Use the CheckIt PRO: CKMEDIA Applet
  13.  
  14.      TouchStone Software Corporation (developer of CheckIt) is pleased to
  15.      provide you a FREE license to use the CheckIt PRO: CKMEDIA.EXE applet
  16.      (mini-application program), provided that you do not modify the program in
  17.      any way.  You may make as many copies of the program as you need for your
  18.      own use or to pass along to others as long as you also include this text
  19.      file in its original form.  Neither the program or this file may be
  20.      (resold) distributed as part of any commercial venture.
  21.  
  22.      DOS 6.0 and Data Corruption Problems
  23.  
  24.      There has been a lot of discussion in the press lately regarding DOS 6.0
  25.      and possible problems with DoubleSpace compression. In the process of doing
  26.      our own research for CheckIt PRO, we did indeed encounter some problems
  27.      with data loss, but not as a direct result of DoubleSpace compression. The
  28.      specific problems that we identified were actually due to installing
  29.      DoubleSpace on a drive with latent errors, or physical media defects which
  30.      caused some data areas on the drives to be marginal for storing data
  31.      safely. The problems that occurred on our DoubleSpace volumes could have
  32.      been prevented by testing the drive to detect unsafe data areas (clusters),
  33.      then re-formatting or re-marking the clusters as bad to prevent any file,
  34.      especially a DoubleSpace volume, from using them.
  35.  
  36.      QuickStart:
  37.  
  38.      The CKMEDIA.EXE applet finds disk surface and file structure problems with
  39.      your HD, FD, or SyQuest/Bernoulli drives.  These latent errors may cause
  40.      data corruption once you format them with DOS, or begin using DoubleSpace
  41.      or SmartDrive. The CKMEDIA applet is completely harmless; it creates a
  42.      report but doesn't alter the disk.  We recommend you use it in conjunction
  43.      with CHKDSK, which finds corrupted cluster links.  To get started, type:
  44.           C:>DOS6PREP                   To Run CKMEDIA & CHKDSK from a BAT file
  45.           C:>CKMEDIA C:                 To Test Drive C
  46.           C:>CKMEDIA /?                 To See program Help
  47.           C:>TYPE CKPRO.RPT | MORE      To View default program output
  48.           C:>CHKDSK > CHKDSK.RPT        To Run CHKDSK & create file
  49.      If you want to learn a little more about the DOS data corruption problems
  50.      we've found, or how this procedure can help you avoid them, read on...
  51.  
  52.      Problems Created by the DOS FORMAT Command
  53.  
  54.      Older MFM and RLL-encoded drives are more likely to experience data-loss
  55.      because of the lack of error detection built into the drive. Newer
  56.      technologies such as IDE has intelligence for managing bad tracks and
  57.      therefore become less susceptible, although not impervious. Before you
  58.      begin using a drive for data you should always first test it rigorously to
  59.      eliminate any chance of potentially bad clusters being assigned for use by
  60.      DOS. This preparation step is particularly crucial for compressed drives.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.      In our testing, we backed up an existing MFM drive which had been in use
  67.      for a while. Several marginal clusters were detected over time by our
  68.      CheckIt hard drive test and therefore marked as bad in the FAT. Then we
  69.      performed a DOS FORMAT before installing DoubleSpace. This created a
  70.      special circumstance which not all users may be aware of. Incredible as it
  71.      may seem, the DOS FORMAT process does NOT preserve any entries marked as
  72.      "BAD" (FF7h for 12-bit FATs, FFF7h for 16-bit FATs) in the File Allocation
  73.      Table (FAT).  All of the bad sector marks we had painstakingly applied with
  74.      Disk Doctor and DiskFix were gone.  Instead of carrying forward this vital
  75.      information, the DOS FORMAT re-marked all of these bad clusters "Available
  76.      for Use".  Subsequently, when we restored the data some of the bad sectors
  77.      were assigned to data files -- and others ended up being assigned to
  78.      critical areas like our DoubleSpace compressed drive.  As we began to use
  79.      the drive again, errors occurred and the data files became irrecoverably
  80.      corrupted.
  81.  
  82.      Another problem with the DOS 6.0 FORMAT is that it may even return to use
  83.      some of the sectors that have been marked as part of a Bad Track at the
  84.      low-level!  During the format, it will re-read individual sectors that are
  85.      part of a marked track, and make the determination that some of them may be
  86.      useable (this is what's happening when you see the message "Trying to
  87.      recover allocation unit #").  However, the test performed by the DOS Format
  88.      is inadequate, and sectors may be returned to use that would fail more
  89.      rigorous tests, and will subsequently cause errors and data loss.
  90.  
  91.      The lesson here is, try to avoid using FORMAT.COM, and make an effort to
  92.      mark bad sectors at the low-level.  Even though no method seems completely
  93.      impervious to the DOS FORMAT process, at least with the low-level format
  94.      you have a much better chance of avoiding re-use of the bad sectors.  We
  95.      recommend that the entire track which the bad cluster occupies be marked
  96.      out at low-level -- you can do this with the formatter supplied with your
  97.      drive, or with the Checkit PRO Universal Low-Level Formatter.  If you
  98.      aren't willing to backup your drive do another low-level format, then
  99.      retest your drive using our free CKMEDIA utility to create a list of the
  100.      bad clusters, and purchase a utility to re-mark them each time you use the
  101.      DOS FORMAT.  We plan to include a replacement for the DOS format command in
  102.      a future release of CheckIt PRO.
  103.  
  104.      Media Problems and DoubleSpace:  The use of disk compression magnifies the
  105.      potential for problems if a drive is less than perfect. Once installed,
  106.      DoubleSpace creates a single large file (the size depends on how much of
  107.      your drive you want to compress) which becomes the new DoubleSpace volume.
  108.      This volume contains its own file structure for managing files that have
  109.      been compressed as well as the compressed files themselves. Since the
  110.      DoubleSpace volume occupies a significant portion of your drive, the
  111.      chances of a "marginal" data cluster being assigned to it for use are
  112.      somewhat substantial. More of disk space is now devoted to critical areas
  113.      such as the DoubleSpace's internal subset of the FAT and header data.
  114.      Furthermore, more data is packed onto each cluster, and it is more
  115.      difficult for data-recovery utilities to unscramble errors in these areas.
  116.  
  117.      Cross-Linked Files:  When data errors occur, they may be caused by -- or
  118.      they may result in, "cross-linked files".  This term refers to a file which
  119.      references a cluster which is also referenced by another file (a cluster
  120.      should only ever be referenced by one file).  Once a cluster has become
  121.  
  122.  
  123.  
  124.  
  125.  
  126.      cross-linked, a future read/write operation may cause either or both of the
  127.      files to become unreadable and your utilities or applications may crash
  128.      when attempting to access the file.  Since DoubleSpace creates an entire
  129.      disk drive within a single file, a cross-linked cluster within this special
  130.      file can create major problems, and even cause the loss of all the data in
  131.      the compressed drive, if the bad cluster is within one of its critical
  132.      areas (the headers, buffer area, or compression table).  Cross-linked files
  133.      may be created as an indirect result of re-use of bad clusters caused by
  134.      the DOS FORMAT command, because a read error by an application may cause it
  135.      to crash and corrupt the FAT.  They can also be caused by using the
  136.      SmartDrive caching utility in delayed-write mode, and then having your
  137.      system crash, rebooting, or turning it off before all the data is written
  138.      out and the file closed properly.  A third method we have seen involves
  139.      running DOS programs under Windows and swapping between them during file
  140.      I/O.  The cross-linked or corrupted-link clusters are a serious problem
  141.      likely to get worse; and we recommend that you run CHKDSK at least daily to
  142.      prevent this from happening, if you use your computer frequently with
  143.      DoubleSpace or SmartDrive.
  144.  
  145.      File Names with Special Characters:  We also found, in reviewing some of
  146.      these problems with other developers, that the DoubleSpace installation
  147.      program is especially sensitive to the use of illegal characters in DOS 
  148.      filenames. If any filenames or directory names on the your disk contain an 
  149.      illegal DOS filename character, corruption may likely result.  We added the 
  150.      capability of reporting these names to our CKMEDIA applet, to help with 
  151.      this problem.
  152.  
  153.      Test your Disks with CKMEDIA:  The CKMEDIA.EXE applet is a specialized
  154.      version of the CheckIt Hard Drive Test, which we have improved and extended
  155.      to cover the range of DOS 6.0 & DoubleSpace problems described above.  In
  156.      this version, CKMEDIA.EXE not only checks the entire disk surface for
  157.      problems, but differentiates between clusters/sectors already marked bad at
  158.      the low-level format and those marked at the DOS level (as well as, of
  159.      course, bad clusters that are not marked at all).  It also shows the type
  160.      of use for each bad cluster -- so you can see right away if any critical
  161.      areas are involved.  Finally, we added a check on filenames, so CKMEDIA.EXE
  162.      will list the full pathname of all files with special characters in the
  163.      name.
  164.  
  165.         NOTE:  CheckIt 3.0 and CheckIt PRO also include excellent programs to
  166.         use for finding surface errors -- the CKMEDIA.EXE applet simply adapts
  167.         that technology to this special situation.  For best results, if you
  168.         have those programs you can run them too, as they include more specific
  169.         tests of the drive mechanics and may detect additional errors.  And
  170.         while you may have other utilities for finding disk errors, we strongly
  171.         recommend that you use CheckIt or the CKMEDIA.EXE applet because the
  172.         tests they perform are rigorous and may discover errors missed by other
  173.         programs.  In addition, the other utilities generally do not show all
  174.         the information you need to determine which sectors need to be re-
  175.         marked, the relationship between logical clusters and physical sectors,
  176.         or whether bad sectors are currently being used for any critical disk
  177.         areas.  Also, be aware that the results of tests may vary slightly.  We
  178.         recommend taking the pessimistic perspective on all errors and mark all
  179.         the sectors/clusters that fail any test.
  180.      
  181.  
  182.  
  183.  
  184.  
  185.  
  186.      How to Use CKMEDIA
  187.  
  188.      The CKMEDIA.EXE applet can be used as a command at the DOS prompt, or from
  189.      a DOS batch file with a variety of output options. The interface options
  190.      also allow it to be called from another program.  This syntax is typical of
  191.      the 20 or so applets that are included with CheckIt PRO.  To view this
  192.      syntax when you're using the program, simply type CKMEDIA with no
  193.      parameters and a help screen will be displayed.
  194.  
  195.      CKMEDIA - DOS Drive Structure/Media Test            Check√It PRO: v1.07
  196.      Copyright (c) 1989-1993 TouchStone Software Corp  *ALL RIGHTS RESERVED*
  197.  
  198.      Usage: CKMEDIA drivename [/T:#test] [R:start-end] [/F:filename,type]
  199.                               [/I:interface] [/O:dest,format] [/N:"note"]
  200.  
  201.      drivename        Letter-name of drive(s) to test (A, C, etc., up to four).
  202.      /T:#[test]       Run # iterations of the specified phases (default=1bfrdn).
  203.        test           One or more of the following:
  204.                       b = boot sector          f = FAT sectors
  205.                       r = root directory       d = data clusters
  206.                       n = naming check         c = CHKDSK results
  207.      /R:start-end     Test this range of clusters (ie /R:2-1000).
  208.      /F:filename,type Store bad entries to this file.
  209.        type           b = bad tracks (BIOS geometry)
  210.                       c = bad clusters for marking at DOS level
  211.                       f = invalid file and directory names
  212.      /I:s[a]          Silent. Run with no program interface.
  213.      /I:t[a]          Terse. Simple display output (default).
  214.      /I:b[a]          Boxed test dialog for batching.
  215.                       (the optional [a] sounds a beep on failures/anomalies).
  216.      /O:[dest,format] Send output to destination in the specified format.
  217.        dest           Any valid DOS file or device name.
  218.                       DOS devices include CON, AUX, PRN ,LPTx, COMx, and NUL.
  219.        format         Any of the following:
  220.                       a = ASCII format (default setting is /O:CKPRO.RPT,A).
  221.                       j = Journal format. Used for debugging.
  222.      /N:"note"        Add a note to the output.  (i.e. /N:"This is a note")
  223.  
  224.      Example: CKMEDIA C E /T:3bd /O:prn,a /O:ckpro.rpt,a /N:"Test Drives C & E"
  225.  
  226.      To make the applet easier to use for those who are not familiar with our
  227.      syntax style, we have included a BAT file which illustrates how to use the
  228.      applet in combination with the CHKDSK utility (required to provide the
  229.      cross-link information).  The BAT file to check drive C: is DOS6PREP.BAT:
  230.           CHKDSK C: > CHKDSKC.RPT
  231.           DEL *.RPT
  232.           DEL CKMEDIA.JNL
  233.           CKMEDIA C: /T:brnfdc /F:BADTRACK.RPT,B /F:BADCLUST.RPT,C 
  234.              /F:BADFILES.RPT,F /O:CKMEDIAC.RPT,A /O:CKMEDIAC.JNL,J /N:"TEST HD C:"
  235.           TYPE CKMEDIA.RPT|MORE
  236.           TYPE CKMEDIA.JNL|MORE
  237.      
  238.      If you use the BAT file, output from CKMEDIA will consist of up to 6 files:
  239.           
  240.           CHKDSKC.RPT    Report from CHKDSK on drive C:
  241.  
  242.  
  243.  
  244.  
  245.  
  246.           CKMEDIAC.RPT   Report of Test Results.
  247.           CKMEDIAC.JNL   Journal (report) of step-by-step test progress.
  248.           BADTRACK.C     Data file with the addresss of all bad sectors found.
  249.           BADCLUST.C     Data file with the numbers of all bad clusters found.
  250.           BADFILES.C     Data file with the pathnames of all bad filenames.
  251.  
  252.      How to Use the CKMEDIA Report:
  253.  
  254.        1. Boot Sector Test.  If this test failed, you cannot boot from this
  255.           drive.  You may use the disk to store programs and data files (only).
  256.        2. FAT Sector Test. If this test failed, you already have a very serious
  257.           problem which may not be able to be repaired. This test compares the
  258.           FAT and its backup copy, which should be identical.
  259.        3. Rootdir Test.  If this test failed, you already have a very serious
  260.           problem which may result in the loss of at least some subdirectories.
  261.        4. Data Clusters Test.  If this test failed (at least one unmarked bad
  262.           cluster), there will be a list of bad clusters in the output file. If
  263.           the bad cluster is in a critical area, it may already be too late --
  264.           but you can try to backup as much data as possible from the entire
  265.           disk, and then perform a low-level format before restoring the data.
  266.           When you perform the low-level format you will need to re-mark all the
  267.           bad tracks (if you use the CheckIt PRO universal low-level formatter,
  268.           it will use the data in the BADTRACK file and mark them
  269.           automatically).  The low-level format markings will be safer in the
  270.           long run, if you continue to plan using DOS 6.0 because they are less
  271.           likely to be destroyed by the DOS FORMAT command.  The CheckIt PRO
  272.           low-level formatter will format all types of drives, including ESDI,
  273.           SCSI, and IDE as well as MFM and RLL.  On the other hand, you can also
  274.           use utilities like Disk Doctor to re-mark the Bad Clusters at the DOS-
  275.           level, but BEWARE: If you ever use the DOS FORMAT command again, all
  276.           your markings will be lost and you will be in danger again!
  277.  
  278.        5. Filenames Check.  If this test failed, there will be a list of
  279.           pathnames in the report file which contain illegal characters.
  280.           This problem is less serious.  Simply change each filename to one
  281.           which has no illegal characters, unless your application must use the
  282.           name as it is currently specified.  In that case, the file must be
  283.           moved off the drive to be compressed to another uncompressed drive.
  284.  
  285.        6. CHKDSK Results.  If this test failed, it means that your disk contains
  286.           cross-linked clusters.  Examine the file named CHKDSK?.RPT to see the
  287.           cluster numbers which are currently cross-linked.  You may be able to
  288.           recover, depending upon which files are affected.  In general, you can
  289.           run the CHKDSK utility again, with the /F option to have that program
  290.           create a file with the data from the cross-linked cluster in it.
  291.           Examine this data and see if you can determine which file it belongs
  292.           to.  This type of problem should be fixed IMMEDIATELY, before you use
  293.           your hard disk further.
  294.  
  295.        7. CKMEDIA Data Files:  The Bad Tracks, Bad Clusters, and Bad Filenames
  296.           data files are only created as needed.  The Bad track file is
  297.           formatted for use directly by the CheckIt PRO Low-Level Formatter.
  298.           The Bad Cluster and Bad Filename file will be useful if you decide to
  299.  
  300.  
  301.  
  302.  
  303.  
  304.           re-mark clusters at the DOS level, or change the filename using
  305.           another utility.
  306.  
  307.      You Really Ought to Get a Copy of CheckIt PRO!
  308.  
  309.      CheckIT PRO is the diagnostic program of choice for most serious PC
  310.      technicians, and has recently been awarded PC Magazine's Editor's Choice
  311.      for System Reporting utilities.  The retail CheckIt PRO product provides
  312.      not only many more diagnostic applets, but a pretty menu interface for
  313.      them, and customizable test scripts.  Important features include:
  314.  
  315.      CheckIt PRO: SysInfo
  316.  
  317.      Over 50 charts, tables, and graphic displays that show:
  318.           * Detailed hardware component and software configuration data
  319.           * The most accurate IRQ Usage and I/O Address Map information
  320.           * CMOS Setup and DOS/Windows System File Editor
  321.           * Performance Benchmarks with User-Modifiable Comparison Library
  322.           * Built-In Technical Reference Library
  323.  
  324.      CheckIt PRO: Tests & Tools
  325.  
  326.      Hardware Diagnostics for:
  327.        *  Comprehensive Testing of System Board, Memory, Hard Drives, Floppy
  328.           Drives, COM Ports, LPT Ports, Printer, Video, Joystick, Mouse, and
  329.           Keyboard
  330.        *  Scripts for Quick Test, System Certification, and Burn-In
  331.        *  Universal Low-Level Formatter for all types of hard drives
  332.        *  Virus Scan that detects over 2,000 viruses including Polymorphic
  333.        *  Create Rescue Disk function that creates a bootable floppy with copies
  334.           of your CMOS, System Files, Device Drivers, and Utility Programs
  335.           necessary to recover from a hard drive or system crash.
  336.           
  337.      CheckIt PRO: Deluxe
  338.  
  339.      This new package includes both volumes of CheckIt PRO described above, plus
  340.      a Tool Kit consisting of:
  341.        *  3.5" and 5.25" Mini-Spiral Floppy Drive Alignment Testing Disks
  342.        *  Set of 3 Loopback Plugs for IRQ and external COM, LPT port tests
  343.        *  Screwdriver, Cable Labels, etc.
  344.  
  345.      Isn't it time for you to Get With the PROgram?  CheckIt PRO is available at
  346.      most computer software resellers.  To purchase a copy or find out the name
  347.      of the store nearest you, write or call:
  348.           TouchStone Software Corporation
  349.           2130 Main Street
  350.           Huntington Beach, CA 92648 USA
  351.           Phone: (714) 969-7746 or (800) 531-0450
  352.  
  353.      And REMEMBER:  When in Doubt, CheckIT OUT!
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.